/***
 * Brian Hession -- February 16, 2013
 * 
 * PlayerWorld
 *
 * Changelog
 * Date				Changes
 * 2/16/2013		Initial version
 *
 */

#ifndef PLAYERWORLD_H
#define PLAYERWORLD_H

#include <SDL/SDL.h>
#include "graphics/graphics.h"
#include "graphics/animation.h"

class PlayerWorld {
	public:
		PlayerWorld();
		void init();
		void setPosition( int x, int y );
		void setPosition( SDL_Rect rect );
		void up();
		void right();
		void left();
		void down();
		SDL_Rect getPosition();
		void draw( SDL_Surface* screen );
		void calculate( int delta );
	private:
		enum Direction {
			UP = 0,
			RIGHT = 1,
			LEFT = 2,
			DOWN = 3
		} dir;
		Animation a;
		SDL_Surface* image;
		SDL_Rect position;
		SDL_Rect clip;
};

#endif

